package org.xxpay.pay.channel.juice;

import com.alibaba.fastjson.JSONObject;
import org.springframework.stereotype.Component;
import org.xxpay.core.entity.TransOrder;
import org.xxpay.pay.channel.BaseTrans;

/**
 * @Package org.xxpay.pay.channel.juice
 * @Class: JuicepayTransService.java
 * @Description:
 * @Author leo
 * @Date 2019/3/30 18:08
 * @Version
 **/
@Component
public class JuicepayTransService extends BaseTrans {
    @Override
    public String getChannelName() {
        return JuicepayConfig.CHANNEL_NAME;
    }

    @Override
    public JSONObject trans(TransOrder transOrder) {
        JuicepayConfig juicepayConfig = new JuicepayConfig(getTransParam(transOrder));
        _log.info("【转账订单】：{}", JSONObject.toJSONString(transOrder));


        return null;
    }

    @Override
    public JSONObject balance(String payParam) {
        return null;
    }
}
